package com.googlecode.tapestry5validator.hibernate;

import java.util.List;

import org.apache.tapestry5.ioc.annotations.UsesOrderedConfiguration;

/**
 * Provide adapters for hibernate validators. You can add your custom hibernate validator
 * to this provider using standart tapestry ioc engine. 
 * 
 * @author Yesrastov Valentin
 */
@UsesOrderedConfiguration(ValidatorAdapter.class)
public class SupportedHibernateValidatorsProvider {

	private final List<ValidatorAdapter> supportedValidators;
	
	public SupportedHibernateValidatorsProvider(List<ValidatorAdapter> supportedValidators) {
		this.supportedValidators = supportedValidators;
	}
	
	public List<ValidatorAdapter> getSupportedValidators() {
		return supportedValidators;
	}
	
}
